﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TARADesktopDoctor
{
	/// <summary>
	/// Interaction logic for TreatmentInfo.xaml
	/// </summary>
	public partial class TreatmentInfo : UserControl
	{
        public tara_wcf.EXE treatment = new tara_wcf.EXE();
        //Create treatment object here
        //public "treatment class" = new "treatment class"();

		public TreatmentInfo()
		{
			this.InitializeComponent();
		}

        public void Show()
        {
            PopulateInfo();
            this.Visibility = Visibility.Visible;
        }

        private void PopulateInfo()
        {
            lblTreatmentName.Text = treatment.Name;
            lblVersion.Text = treatment.Version;
            lblDeveloperName.Text = treatment.Developer;
            lblTargetedMotion.Text = treatment.TargetedMotion;
        }

        private void btnOk_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Collapsed;
        }
	}
}